Measuring the Cost of Regression Testing in Practice

نویسندگان

  • Adriaan Labuschagne
  • Laura Inozemtseva
  • Reid Holmes
چکیده

Software defects cost time and money to diagnose and fix. Consequently, developers use a variety of techniques to avoid introducing defects into their systems. However, these techniques have costs of their own; the benefit of using a technique must outweigh the cost of applying it. In this paper we investigate the costs and benefits of automated regression testing in practice. Specifically, we studied 61 projects that use Travis CI, a cloud-based continuous integration tool, in order to examine real test failures that were encountered by the developers of those projects. We determined how the developers resolved the failures they encountered and used this information to classify the failures as being caused by a flaky test, by a bug in the system under test, or by a broken or obsolete test. We consider that test failures caused by bugs represent a benefit of the test suite, while failures caused by broken or obsolete tests represent a test suite maintenance cost. We found that 18% of test suite executions fail and that 13% of these failures are flaky. Of the non-flaky failures, only 74% were caused by a bug in the system under test; the remaining 26% were due to incorrect or obsolete tests. In addition, we found that, in the failed builds, only 0.38% of the test case executions failed and 64% of failed builds contained more than one failed test. Our findings contribute to a wider understanding of the unforeseen costs that can impact the overall cost effectiveness of regression testing in practice. They can also inform research into test case selection techniques, as we have provided an approximate empirical bound on the practical value that could be extracted from such techniques. This value appears to be large, as the 61 systems under study contained nearly 3 million lines of test code and yet over 99% of test case executions could have been eliminated with a perfect oracle.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The survey of knowledge and practice of faculty members about validity and reliability of exams

Introduction. Measuring is the foundation of evaluation. The main way for evaluation of education progression is testing the exams and every test must have identity, validity, reliability and be easy to perform. More precision to preparing the exams can improve its validity. There are different ways for measuring validity and reliability in testing. Do the faculty members know about these metho...

متن کامل

Pnm-17: Cost Effectiveness of Human Papillomavirus Testing in Cervical Cancer Diagnosis

Background: Epidemiological studies are shown robust association between human papillomavirus (HPV) and cervical cancer. From 1990 HPV was known as a necessary but insufficient cause of cervical invasive cancer. The purpose of this study was to evaluate the cost effectiveness of HPV test in cervical cancer screening. Materials and Methods: This is a systematic review article; the newest scienti...

متن کامل

Using Program Slicing Technique to Reduce the Cost of Software Testing

Systems of computers and their application in the lives of modern human beings are vastly expanding. In any kind of computer application, failure in computer systems can lead to a range of financial and mortal losses. Indeed, the major origin of software failure can be located in designing or implementing software. With regard to these statistics, 30% of the software projects have been prospero...

متن کامل

Cost-cognizant Test Case Prioritization

Test case prioritization techniques schedule test cases for regression testing in an order that increases their ability to meet some performance goal. One performance goal, rate of fault detection, measures how quickly faults are detected within the testing process. Previous work has provided a metric, APFD, for measuring rate of fault detection, and techniques for prioritizing test cases in or...

متن کامل

Developing and psychometric testing of a questionnaire to assess the knowledge, attitude and Practice of paramedical staffs about nosocomial infections

Introduction: Nosocomial infections increase costs, prolong recovery, cause disability, and death of patients. Adequate knowledge, attitude, and practice of staff play an important role in controlling nosocomial infections. The aim of this study was to design and test psychometer a questionnaire to assess the knowledge, attitude and practice (KAP) of paramedical staff about nosocomial infection...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017